package com.hxwb.chainmaker.rpc.dao;

import com.hxwb.chainmaker.rpc.entity.Coin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface CoinDao extends JpaRepository<Coin, String> {
    @Query(value = "select * from coin where is_chainmaker = 1 ",nativeQuery = true)
    List<Coin> findChainmaker();
}
